import request from '../utils/request';

// 获取群组积分规则
export function getPointRules(groupId) {
    return request({
        url: `/api/point-rules/${groupId}`,
        method: 'get'
    });
}

// 更新群组积分规则
export function updatePointRules(data) {
    return request({
        url: '/api/point-rules/update',
        method: 'post',
        data
    });
} 